home *** CD-ROM | disk | FTP | other *** search
- /*
- $VER: dOPUS_CED_aREXX_cONTROL_sCRIPT 1.0 (26.09.94)
-
- bY STuN/MYSTiC
-
- uSAGE: Make a button with 'CD source' and 'Run asynchronously'
- enabled which looks like this:
-
- AmigaDOS RX REXX:CED.dopus {p} {f}
-
- If you want to be able to load in all selected files
- instead of only the first one use {F} instead of {f}.
- */
-
- options failat 21
- parse arg portname ' ' filename
- options results
- CEDactive=pos('rexx_ced',show('Ports')) /* inactive if 0 */
- problems=0
-
- address(portname)
- busy on
- if CEDactive=0 then do
- toptext "CED cONTROL bY STuN/MYSTiC: CED nOT aCTIVE... lOADING nOW!"
- address command 'CED '||filename
- if rc>0 then problems=1
- end
- else do
- toptext "CED cONTROL bY STuN/MYSTiC: CED aCTIVE... lOADING fILE!"
- address 'rexx_ced'
- 'open new'
- cedtofront
- open filename
- end
-
- address(portname)
- if problems=0 then toptext "CED cONTROL: fINISHED!"
- else toptext "CED cONTROL: sHIT! cOULDN'T lOAD CED!"
- busy off
-